package com.core.system.domain;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * 资源
 */
@TableName("resource")
public class Resource {
	/** 1代表菜单，2代表按钮 */
  @TableField("`category`")
	private Integer category;
	/** 创建时间 */
  @TableField("`create_time`")
	private Date createTime;
	/** 图标 */
  @TableField("`icon`")
	private String icon;
	/** id */
  @TableField("`id`")
	private String id;
	/** 是否缓存，1缓存，0不缓存 */
  @TableField("`is_cached`")
	private String isCached;
	/** 是否可见1可见，0不可见 */
  @TableField("`is_show`")
	private Integer isShow;
	/** 链接类型，1vue页面，2内嵌外部网页，3外部链接 */
  @TableField("`link_type`")
	private Integer linkType;
	/** 名称|菜单或按钮 */
  @TableField("`name`")
	private String name;
	/** 页面|路由|路径 */
  @TableField("`page`")
	private String page;
	/** 父id */
  @TableField("`parent`")
	private String parent;
	/** 文件路径，默认admin文件夹路径下 */
  @TableField("`path`")
	private String path;
	/** 权限标记 */
  @TableField("`perms`")
	private String perms;
	/** 请求|接口 */
  @TableField("`request`")
	private String request;
	/** 排序 */
  @TableField("`sort`")
	private Integer sort;

	public void setCategory(Integer category) {
		this.category = category;
	}
	
	public Integer getCategory() {
		return this.category;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	
	public String getIcon() {
		return this.icon;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getId() {
		return this.id;
	}
	public void setIsCached(String isCached) {
		this.isCached = isCached;
	}
	
	public String getIsCached() {
		return this.isCached;
	}
	public void setIsShow(Integer isShow) {
		this.isShow = isShow;
	}
	
	public Integer getIsShow() {
		return this.isShow;
	}
	public void setLinkType(Integer linkType) {
		this.linkType = linkType;
	}
	
	public Integer getLinkType() {
		return this.linkType;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getName() {
		return this.name;
	}
	public void setPage(String page) {
		this.page = page;
	}
	
	public String getPage() {
		return this.page;
	}
	public void setParent(String parent) {
		this.parent = parent;
	}
	
	public String getParent() {
		return this.parent;
	}
	public void setPath(String path) {
		this.path = path;
	}
	
	public String getPath() {
		return this.path;
	}
	public void setPerms(String perms) {
		this.perms = perms;
	}
	
	public String getPerms() {
		return this.perms;
	}
	public void setRequest(String request) {
		this.request = request;
	}
	
	public String getRequest() {
		return this.request;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	public Integer getSort() {
		return this.sort;
	}

	@Override
    public boolean equals(Object o) {
        if (this == o) { return true; }
        if (o == null || getClass() != o.getClass()) {return false;}
        Resource that = (Resource) o;
        return id.equals(that.id);
    }

    @Override
    public int hashCode() {
        return java.util.Objects.hash(id);
    }
    
    @Override
    public String toString() {
        return "Resource{" +
		"category=" + category +
		",createTime='" + createTime + "'" + 
		",icon='" + icon + "'" + 
		",id='" + id + "'" + 
		",isCached='" + isCached + "'" + 
		",isShow='" + isShow + "'" + 
		",linkType='" + linkType + "'" + 
		",name='" + name + "'" + 
		",page='" + page + "'" + 
		",parent='" + parent + "'" + 
		",path='" + path + "'" + 
		",perms='" + perms + "'" + 
		",request='" + request + "'" + 
		",sort='" + sort + "'" + 
                '}';
    }
	
}